package com.example.service;

import com.example.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.vo.RegisterUser;
import com.example.vo.ResetPasswordVO;
import com.example.vo.UserInfoVo;

/**
* @author circle48
* @description 针对表【user】的数据库操作Service
* @createDate 2024-05-14 20:25:44
*/
public interface UserService extends IService<User> {
    boolean existsByPhone(String phone);

    boolean resetPassword(ResetPasswordVO user);

    Long getIdByPhone(String phone);

    boolean register(RegisterUser user);

    void addUser(User entity);

    void updataUserIntegration(int totalPoints, User u);

    UserInfoVo getUserInfo(Long userId);

    boolean updateProfile(Long userId, String avatar);

    boolean updatePassword(Long userId, String password);

    boolean updateUserInfo(Long userId, String nickname);
}
